package com.sandu.mirrorapp


import android.app.Activity
import com.tencent.bugly.crashreport.CrashReport
import com.sandu.lib_common.base.BaseApplication
import com.sandu.lib_mvvm.ext.util.jetpackMvvmLog
import com.sandu.mirrorapp.activity.ErrorActivity
import com.sandu.mirrorapp.activity.WelcomeActivity


/**
 * 作者　: sandu
 * 时间　: 2024/12/23
 * 描述　:初始化bugly，并且将默认的几个页面反传给底层，方便业务模块调用
 */


class App : BaseApplication() {

    override fun onCreate() {
        super.onCreate()
        // 初始化Bugly
        // 项目独立内容初始化
        CrashReport.initCrashReport(this, "04cd7fd095", false);
        jetpackMvvmLog = true
        setActivity(
            WelcomeActivity::class.java as Class<out Activity>,
            ErrorActivity::class.java as Class<out Activity>,
            ErrorActivity::class.java
        )
    }


}
